html {
  font-size: 4px; // * 1rem = 4px  方便unocss计算：在unocss中 1字体单位 = 0.25rem，相当于 1等份 = 1px

  &.dark {
    filter: invert(1);
    img,
    video {
      filter: invert(1);
    }
  }
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}
#app {
  height: 100%;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

.router-view {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: 0 auto;
  // -webkit-overflow-scrolling: touch;
}

.slide-right-enter-active,
.slide-right-leave-active,
.slide-left-enter-active,
.slide-left-leave-active {
  height: 100%;
  will-change: transform;
  transition: all 500ms;
  position: absolute;
  backface-visibility: hidden;
}
.slide-right-enter {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
}
.slide-right-leave-active {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}
.slide-left-enter {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}
.slide-left-leave-active {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
}

:root {
  --vt-c-white: #ffffff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;

  --vt-c-black: #181818;
  --vt-c-black-soft: #222222;
  --vt-c-black-mute: #282828;

  --vt-c-indigo: #2c3e50;

  --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);

  --vt-c-text-light-1: var(--vt-c-indigo);
  --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  --vt-c-text-dark-1: var(--vt-c-white);
  --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}

/* semantic color variables for this project */
:root {
  --color-background: var(--vt-c-white);
  --color-background-soft: var(--vt-c-white-soft);
  --color-background-mute: var(--vt-c-white-mute);

  --color-border: var(--vt-c-divider-light-2);
  --color-border-hover: var(--vt-c-divider-light-1);

  --color-heading: var(--vt-c-text-light-1);
  --color-text: var(--vt-c-text-light-1);

  --section-gap: 160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);

    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);

    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  position: relative;
  -ms-overflow-style: none;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  // background: var(--color-background); // 暗夜模式
  transition: color 0.5s, background-color 0.5s;
  line-height: 1.6;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
    'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// 文本省略
// 省略 1 行
.text-ellipsis--l1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
// 省略 2 行

.text-ellipsis--l2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
// 省略 3 行
.text-ellipsis--l3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

// 省略 4 行
.text-ellipsis--l4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

// 省略 5 行
.text-ellipsis--l5 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

section ::-webkit-scrollbar {
  display: none;
}

article::-webkit-scrollbar {
  display: none;
}
.white-space {
  white-space: nowrap;
  text-overflow: ellipsis;
}
.break_all {
  word-break: break-all;
}
.box-shadow {
  box-shadow: 0 0 2px #eee;
}
.bg-theme {
  background-color: #3d8ffd;
}
.theme-color {
  color: #3d8ffd;
}
.border-theme-color {
  border-color: #3d8ffd;
}
.radius-t-l-4 {
  border-top-left-radius: 4px;
}
.radius-t-l-6 {
  border-top-left-radius: 6px;
}
.radius-t-l-8 {
  border-top-left-radius: 8px;
}
.radius-t-r-4 {
  border-top-right-radius: 4px;
}
.radius-t-r-6 {
  border-top-right-radius: 6px;
}
.radius-t-r-8 {
  border-top-right-radius: 8px;
}
.radius-b-r-4 {
  border-bottom-right-radius: 4px;
}
.radius-b-r-6 {
  border-bottom-right-radius: 6px;
}
.radius-b-r-8 {
  border-bottom-right-radius: 8px;
}
.radius-b-l-4 {
  border-bottom-left-radius: 4px;
}
.radius-b-l-6 {
  border-bottom-left-radius: 6px;
}
.radius-b-l-8 {
  border-bottom-left-radius: 8px;
}
.radius-b-4 {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.radius-b-6 {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.radius-b-8 {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.radius-t-4 {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.radius-t-6 {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.radius-t-8 {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.order_status_blue {
  color: #3d8ffd;
}
.order_status_red {
  color: #f00;
}
.order_status_success {
  color: #4a764e;
}
.order_status_gray {
  color: #999;
}
.nut-cell__link {
  color: #999 !important;
  width: 12px !important;
}
